<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		
		var aList = [2,5,4,1,5,4,9,2,4,2,2,1,4,2,5,7,5,4,6,6,4,4];
		var iLen = aList.length;

		var aList2 = [];

		for(var i=0; i<iLen; i++){

			if(aList.indexOf(aList[i])==i){

				aList2.push(aList[i]);
			}
		}

		alert(aList2);




	</script>
</head>
<body>
	
</body>
</html>